package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.pro.enums.AccessLinkEnum;
import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import lombok.Getter;

/**
 * @ClassName CustomPageEnum
 * @Description 页面定制枚举类
 * @Author mengna.Deng
 * @Date 2021/11/1 10:20
 * @Version 1.0
 */
@Getter
public enum CustomPageMenuEnum {

    /**
     * 页面定制枚举类
     */
    HOME_PAGE_MANAGEMENT("enum.customPageMenuEnum.name.home_page_management", "homePageManagement", AccessLinkEnum.HOME_PAGE_SETTINGS.getIcon(), AccessLinkEnum.HOME_PAGE_SETTINGS.getUrl(), ProPermissionAliasEnum.HOME_PAGE_MANAGE.getAlias()),
    MENU_SETTINGS("enum.customPageMenuEnum.name.menu_settings", "menuSettings", AccessLinkEnum.MENU_SETTINGS.getIcon(), AccessLinkEnum.MENU_SETTINGS.getUrl(),ProPermissionAliasEnum.MENU_SET_VIEW.getAlias()),

    ;

    private String name;

    private String alias;

    private String icon;

    private String url;

    private String permission;


    CustomPageMenuEnum(String name, String alias, String icon, String url, String permission){
        this.name = name;
        this.alias = alias;
        this.icon = icon;
        this.url = url;
        this.permission = permission;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
